-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an error dialog when we fail to parse settings #903
Conversation
* Load messages from the Resources.resw file * Display a message when we fail to parse the settings on an initial parse, or on a reload. * Unfortunately, the dialog is styled incorrectly when the app theme is opposite the system theme. This can result in the button being invisible.
…or-dialog # Conflicts: # src/cascadia/CascadiaPackage/Resources/en-US/Resources.resw
<value>Ok</value> | ||
</data> | ||
<data name="ReloadJsonParseErrorText" xml:space="preserve"> | ||
<value>Settings could not be reloaded from file. Check for syntax errors, including trailing commas.</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there space, time or brainpower to surface the exception text?
Will the exception text be useful or interesting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could always make it a follow-up task to investigate
From #748
Make sure that keybindings serialization pops the error dialog correctly too |
# Conflicts: # src/cascadia/TerminalApp/App.cpp
Will this dialog (and other error, confirmatory or feedback dialogs) be using a UWP ContentDialog, MessageDialog, or a Win32 MessageBox? I vote for UWP (eventually WinUI 3.0) dialogs. |
@mdtauk The screenshot looks exactly like a win32 MessageBoxW i think |
@DHowett-MSFT Things I'm excited to see land: |
Summary of the Pull Request
Add an error dialog when we fail to parse settings.
PR Checklist
Detailed Description of the Pull Request / Additional comments
Sneak peek:
ContentDialog
does a weird thing where it takes its child and moves that to the popup and leaves itself in the tree. That causes things likeElementTheme
inheritance to break. So instead, we're theming theCloseButton
manually, to make sure it's always visible.